home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 051-075 / scopedisk52 / tutor / wb_axe < prev    next >
Text File  |  1995-03-18  |  7KB  |  203 lines

  1.     Greetings, ye of stern stuff!
  2.  
  3.     The way this file's syntax will differ from the rest is when you reach a
  4. line that begins with the ">>" characters, you'll type that line into the ED
  5. window but WITHOUT the ">>". For instance:
  6.  
  7. >> DELETE filename
  8.     you'll put the line
  9. delete filename
  10.     in your ED window.
  11.  
  12.     Simple! So give your file a nam and start ED.
  13.  
  14.     /* If you have alot of confidence, your first line could be...
  15.         FAILAT [a number greater than 20]
  16. this way, if one command fails, the batchfile will continue to execute. The
  17. potential disadvantage to this approach is that let's say a RENAME command fails
  18. for some reason, the file we wanted to move, by renaming it, out of a directory
  19. that we'll later delete it, will not have been moved. But the directory WILL be
  20. DELETEd. Solution: watch the screen while the batchfile is executing and if you
  21. see a situation like this happen, and an error message will still be displayed,
  22. make a mental note of what happened a copy the mistakenly deleted file back to
  23. your disk from the original, after all, that's why you keep the original. */
  24.  
  25.     Let's get rid of the Trashcan. Anything you want to delete from
  26. the WB can be done though the "DISCARD" option of the workbench screen's menu.
  27.  
  28. >> DELETE trashcan#? all
  29. /* the "#?" will match the ".info" file also */
  30.  
  31.     We'll move to "C". You can make your own decisions as to whether or not
  32. I'm throwing away something you want to keep or not throwing away enough. But
  33. these are my suggestions.
  34.  
  35. >> DELETE c:binddrivers
  36. >> DELETE c:changetaskpri
  37. >> DELETE c:diskchange
  38. >> DELETE c:diskdoctor
  39. >> DELETE c:edit
  40. >> DELETE c:protect
  41. >> DELETE c:setclock    /* unless you have a battery operated clock */
  42. >> DELETE c:setdate
  43. >> DELETE c:version
  44. >> DELETE c:why
  45.  
  46.     Now, demos...
  47.  
  48. >> DELETE demos#? all
  49.  
  50.     System. This is a little harder. Most of the things are commands WITH
  51. icons. Let's put the things we want where the belong. GraphicDump, Say, and
  52. SetMap can go on your disk of commands and they can go. I have another disk
  53. set up strictly for icon processing. It has enough room on it to store things
  54. that are created and for all the icon processing utilities, I've found. Since
  55. we're making room for command and not icon storage, IconEd will go. If you
  56. don't want to start a whole disk for icons at this point, copy it and it's
  57. icon to your command disk.
  58.  
  59.     If you didn't stop the startup-sequence, or didn't stop it in time, both
  60. the system and the utilities directories were added to the PATH. We won't be
  61. able to delete them unless we...
  62. >> PATH RESET
  63.  
  64.     OK, we'll move CLI from :system to the root directory...
  65.  
  66. >> RENAME system/CLI CLI
  67. >> RENAME system/CLI.info CLI.info
  68.     /* and get rid of the icons we don't need... */
  69. >> DELETE system/#?.info
  70.     /* and move the commands we want to keep to C: */
  71. >> RENAME system/format c:Format
  72. >> RENAME system/diskcopy c:Diskcopy
  73. >> RENAME system/fastmemfirst c:FastMemFirst
  74. >> RENAME system/initprinter c:InitPrinter
  75. >> RENAME system/nofastmem c:NoFastMem
  76.     /* and pitch the rest... */
  77. >> DELETE system#? all
  78.  
  79.     We'll leave the "l" directory alone.
  80.  
  81.     :devs. The keymaps are too specialized for this workbench...
  82. >> DELETE devs:keymaps all
  83.  
  84.     devs:printers has all sorts of printer drivers in it. NO ONE has all of
  85. those printers, so get rid of the ones you don't have. This is done most easily
  86. by going in after the rest of the transformation is completed and doing a
  87.         DIR devs:printers OPT I
  88. so we'll leave it until you go back to it.
  89.  
  90.  
  91.     We can also eliminate the clipboard and narrator.device...
  92. >> DELETE devs:clipboard#? all
  93. >> DELETE devs:narrator#?
  94.  
  95.     S: can remain untouched for now, so we'll move on to fonts:.
  96.  
  97.     If you've followed the logic I've used so far, you've already created a 
  98. "fontsdisk"  and copied fonts: to it. So...
  99.  
  100. >> ASSIGN fonts:
  101. >> DELETE fonts all
  102. >> DELETE empty#? all
  103.  
  104.     the one thing in libs: we can pitch is...
  105.  
  106. >> DELETE libs:translator.library
  107.  
  108.     :utilities. You don't need the notepad since you know how to use ED, and
  109. the calculator can either be put on your commands_disk or a disk for utilities.
  110.  
  111. >> DELETE utilities#? all
  112. >> DELETE expansion#? all
  113.  
  114.     that pretty much leaves us with the root directory, and there's not much
  115. left there. clock can go to the same ultimate destination as the calculator,
  116. unless you think you'll have a use for it rather than use DATE.
  117.  
  118. if you want it:
  119. >> RENAME clock c:clock
  120. >> DELETE clock.info
  121.  
  122. OR
  123. >> DELETE clock#?
  124.  
  125.     that leaves preferences. if you copy it somewhere else, believe me, you
  126. don't need it. Preferences ALWAYS saves to a file entitled, EXACTLY,
  127.         DEVS:SYSTEM-CONFIGURATION
  128. not df0:devs/system-configuration, not diskname:devs/system-configuration
  129.     nowhere else.
  130.  
  131.     Since devs: is assigned to your workbench when you boot-up, you can
  132. insert a disk that has "preferences" on it in any drive, run it, and it will
  133. save to devs:. Copying it to your commands_disk will free up another 50000+
  134. bytes. 
  135.  
  136. >> DELETE preferences#?
  137.  
  138.     That does it. You can save it now /* <ESC> X */
  139.  
  140.     But we still need you have at the startup-sequence.
  141.  
  142.     Here's what you'll see after you type in:
  143.  
  144. >> ED s:startup-sequence
  145. echo "A500/A2000 Workbench disk.  Release 1.2 version 33.61*N"
  146. Sys:System/FastMemFirst
  147. BindDrivers
  148. Addbuffers df0: 20 ;this uses up about 10K of memory, but improves disk speed
  149. if EXISTS sys:system
  150.     path sys:system add
  151. endif
  152. if EXISTS sys:utilities
  153.     path sys:utilities add
  154. endif
  155. Dir RAM:
  156. Path RAM: add
  157. SetMap usa1
  158. LoadWb
  159. failat 30
  160. SetClock >NIL: Opt load
  161. Date
  162. endcli > nil:
  163.  
  164.     Now here it is again with /* comments */ on what can go:
  165.  
  166. /* echo "A500/A2000 Workbench disk.  Release 1.2 version 33.61*N" 
  167.     you know what it is */
  168. /* Sys:System/ */ FastMemFirst
  169. /* BindDrivers */        
  170. Addbuffers df0: 20 ;this uses up about 10K of memory, but improves disk speed
  171.     /* assess the ADDBUFFERS line for yourself. You can add another if you
  172.        want to keep this one and you have more drives */
  173. /* if EXISTS sys:system
  174.     path sys:system add
  175. endif
  176. if EXISTS sys:utilities
  177.     path sys:utilities add
  178. endif         none of these directories exists, so why check */
  179. Dir RAM:
  180. Path RAM: add
  181. /* SetMap usa1 */
  182. /* LoadWb */
  183. failat 30 /* this is so the sequence doesn't quit if it doesn't find a clock */
  184. SetClock >NIL: Opt load    /* only if you have a battery clock */
  185. Date
  186. /* endcli > nil: */
  187.  
  188.     Here's what it should look like after the changes:
  189.  
  190. FastMemFirst
  191.     [Addbuffers df0: 20]
  192. Dir RAM:
  193. Path RAM: add
  194.     [failat 30
  195.      SetClock >NIL: Opt load]
  196. [Date
  197.  Date ?    /* this will ask you to type a date in */
  198.  Date >s:now    /* this will leave the date where it be found again */]
  199.  
  200.     If you want you can splice the file, you built before, that sets up
  201. the c: in ram:. If you do that, you won't need the line "Dir RAM:". Just put it
  202. in up at the top of the file.
  203.